#ifndef CHATDIALOG_H
#define CHATDIALOG_H

#include <qtextedit.h>
#include <qlineedit.h>
#include <qpushbutton.h>
#include <qdialog.h>
#include <qfile.h>
#include <qtextstream.h>

class ChatDialog : public QDialog {
  Q_OBJECT
    public:
  ChatDialog();
  ~ChatDialog();
signals:
  void sendText(QString);

public slots:
  void appendChat(QString msg, QString type = "");
  void sendButtonClicked();
 private:
  // Log the system messages to a log file.
  QFile file_;
  QTextStream logFile_;

  QTextEdit *chatWindow;
  QLineEdit *chatInput;
  
  QPushButton *sendButton;
    //   QPushButton *scrollToBottomToggleButton;
  

};


#endif
